package online.heycm.platform.canary.gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.Configuration;

/**
 * 所有 LoadBalancerClient 使用 CanaryAutoConfiguration 配置
 * 激活 GatewayCanaryLoadBalancer 负载均衡策略
 *
 * @author heycm
 * @since 2023/12/30 15:23
 */
@Slf4j
@Configuration
@LoadBalancerClients(defaultConfiguration = CanaryAutoConfiguration.class)
public class LoadBalancerClientsAutoConfiguration {

    public LoadBalancerClientsAutoConfiguration() {
        log.info("LoadBalancerAutoConfiguration init...");
    }

}
